package com.flute.haflute.jobbox.base;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 资源分发器 通过通道通信的资源调度/分发 继承该类
 * 
 */
public abstract class CloudResourceBase extends UnicastRemoteObject implements
		InputResource {

	private static final long serialVersionUID = 6920600663313350604L;

	protected CloudResourceBase() throws RemoteException {
		super();
	}

	/**
	 * 取得该资源唯一标示符，子节点向中心节点通信通过该ID取得对应资源
	 * 
	 * @return Id 资源的标识符，String
	 * @throws RemoteException
	 */
	public abstract String getId() throws RemoteException;

}
